﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using NUnit.Framework;
using SharePoint.Contrib;
using System.Globalization;

namespace NUnit.SharePointContrib
{

    [TestFixture]
    public class AssemblyManagerTest
    {

        [SetUp]
        public void Init()
        {
        }

        [TearDown]
        public void Dispose()
        {
        }


        [Test]
        public void TypeAndAssemblyFullNameIsReturnedCorrectly()
        {
            var TypeAndAssemblyFullName = AssemblyManager<string>.TypeAndAssemblyFullName;

            Assert.That(TypeAndAssemblyFullName, Is.EqualTo(MSCoreLibStringTypeAndAssemblyFullName));
        }

        private string MSCoreLibStringTypeAndAssemblyFullName
        {
            get
            {
                Type MSCoreLibString = typeof(string);
                return string.Format(CultureInfo.InvariantCulture, "{0}, {1}", MSCoreLibString.FullName, MSCoreLibString.Assembly.GetName().FullName);
            }
        }


        

    }
}